<?php 
		echo $this->Html->script('bootstrap-datepicker.js');

		echo $this->Html->script('unicorn.js');
		echo $this->Html->script('unicorn.form_common.js');
        echo $this->Html->script('unicorn.wizard.js');
        
?>



<div id="content-header">
				<h1>Inscrire un élève</h1>
				<div class="btn-group">
					<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
					<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
				</div>
</div>
<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
				<a href="#" class="current">Inscription d'un élève</a>
</div>

<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<?= $this->Session->flash() ?>
						<div class="widget-box">	
							<div class="widget-content nopadding">
								<?= $this->Form->create('Pupil', array(
								'id' => 'form-wizard', 
								'class' => 'form-horizontal',
								'novalidate' => 'novalidate'

								));?> 
									<div id="form-wizard-1" class="step"> 

										<div class="widget-title">
											<span class="icon">
												<i class="icon-pencil"></i>
											</span>
											<h5>Informations sur l'éléve</h5>
										</div>	

										<div class="control-group">
											<label class="control-label">Nom</label>
											<div class="controls">
												<?=  $this->Form->input('nom',array('label' => false,'required'=>true)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Nom de jeune fille</label>
											<div class="controls">
												<?=  $this->Form->input('nomJeuneFille' ,array('label' => false)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Prenom</label>
											<div class="controls">
												<?=  $this->Form->input('prenom',array(
												'required' => true,	
												'label' => false 
												)) ?>  
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Adresse</label>
											<div class="controls">
												<?=  $this->Form->input('adresse',array(
												'label' => false,
												'required' => true
												)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Ville</label>
											<div class="controls">
												<?=  $this->Form->input('ville',array(
												'label' => false,
												'required' => true
												)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Code postale</label>
											<div class="controls">
												<?=  $this->Form->input('codePostale',array(
												'label' => false, 
												'id' => 'codePostale'
												)) ?>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">date de naissance</label>
											<div class="controls">
												<?=  $this->Form->input('dateDeNaissance',array(
												'label' => false, 
												'type' => 'text',
												'class' => 'datepicker',
												'required' => true
												)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Pays de naissance</label>
											<div class="controls">
												<?=  $this->Form->input('paysDeNaissance',array(
												'label' => false,
												'required' => true
												)) ?>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Ville de naissance</label>
											<div class="controls">
												<?=  $this->Form->input('villeDeNaissance',array(
												'label' => false,
												'required' => true
												)) ?>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">E-mail</label>
											<div class="controls">
												<?=  $this->Form->input('mail',array(
												'label' => false,
												'id' => 'email'
												)) ?>   
											</div>
										</div>


										<div class="control-group">
											<label class="control-label">Téléphone fixe</label>
											<div class="controls">
												<?=  $this->Form->input('telFixe',array(
												'label' => false, 
												'required' => true
												)) ?>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Téléphone portable</label>
											<div class="controls">
												<?=  $this->Form->input('telPortable',array(
												'label' => false, 
												'required' => true
												
												)) ?>
											</div>
										</div>
									</div> 	

									<div id="form-wizard-2" class="step">

										<div class="widget-title">
											<span class="icon">
												<i class="icon-pencil"></i>
											</span>
											<h5>Informations sur le représentant de l'élève</h5>
										</div>	

										<div class="control-group">
											<label class="control-label">Nom</label>
											<div class="controls">
												<?=  $this->Form->input('nomRepresentant',array('label' => false)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Prenom</label>
											<div class="controls">
												<?=  $this->Form->input('prenomRepresentant',array('label' => false)) ?>  
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Adresse</label>
											<div class="controls">
												<?=  $this->Form->input('adresseRepresentant',array('label' => false)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Code postale</label>
											<div class="controls">
												<?=  $this->Form->input('codePostaleRepresentant',array('label' => false, 'type' => 'text')) ?>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Ville</label>
											<div class="controls">
												<?=  $this->Form->input('villeRepresentant',array('label' => false)) ?> 
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Téléphone fixe</label>
											<div class="controls">
												<?=  $this->Form->input('telFixeRepresentant',array('label' => false, 'type' => 'text')) ?>
											</div>
										</div>

										<div class="control-group">
											<label class="control-label">Téléphone portable</label>
											<div class="controls">
												<?=  $this->Form->input('telPortableRepresentant',array('label' => false, 'type' => 'text')) ?>
											</div>
										</div>
									</div>	
										<div class="form-actions">
											<input id="back" class="btn btn-primary" type="reset" value="Back" />
											<input id="next" class="btn btn-primary" type="submit" value="Next" />
											<div id="status"></div>
										</div>
										<div id="submitted"></div>	
								<?= $this->Form->end() ?>
		 					</div>
 						</div>
					</div>
				</div>
</div>